package com.ibm.rules.conditions;


enum RuleCompareOperator {
	RuleEqual(0), RuleGreaterThan(1), RuleGreaterThanOrEqual(2), RuleSmallerThan(
			3), RuleSmallerThanOrEqual(4);
	private int value = 0;

	private RuleCompareOperator(int value) {
		this.value = value;
	}

	public int value() {
		return this.value;
	}
	
	static final RuleCondition[] condition = new RuleCondition[] {
		new RuleEqual(), new RuleGreaterThan(),
		new RuleGreaterThanOrEqual(), new RuleSmallerThan(),
		new RuleSmallerThan(), };
	
	static public RuleCondition getOperator(RuleCompareOperator op){
		return condition[op.value];
	}
}